﻿using SqlSugar;
using System;
using WPFNote.Models.Utility;
namespace WPFNote.Models
{
    public class BaseEntity
    {
        /// <summary>
        /// ID
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, IsOnlyIgnoreUpdate = true)]
        [MySql("Ignore")]
        public int Id { get; set; }

        /// <summary>
        /// 数据提交时间
        /// </summary>
        [SugarColumn(IsOnlyIgnoreUpdate = true)]
        public DateTime PostTime { get; set; } = DateTime.Now;
    }
}